package cn.jhz.learn.blog.test.core;


import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.jhz.learn.blog.common.bean.JsonData;

@RestController
@RequestMapping("{blog_id}/guestbook")
public class GuestbookController {
	
	@PostMapping
	public JsonData submitMessage(@PathVariable("blog_id") String blogId) {
		//TODO:待设计VO
		return JsonData.success();
	}
	
	@DeleteMapping("/{guestbook_id}")
	public JsonData removeMessage(@PathVariable("blog_id") String blogId, @PathVariable("guestbook_id") Integer guestbookId) {
		//TODO:待设计VO
		return JsonData.success();
	}
	
	@GetMapping("/{guestbook_id}")
	public JsonData findMessage(@PathVariable("blog_id") String blogId, @PathVariable("guestbook_id") Integer guestbookId) {
		//TODO:待设计VO
		return JsonData.success();
	}
}
